package com.haiya.observer.basic;

public class ConcreteSubject extends Subject {
    @Override
    public void notifyObserver() {
        System.out.println("事件 x 发生了， 通知所有观察者 ~~~~~~~~ ");
        for (Observer observer : observers) {
            observer.response();
        }
    }
}
